'''
 组织架构页面
'''
from selenium.webdriver.common.by import By
from page.base_page import BasePage

class OrganizationPage(BasePage):
    # 定位器
    zuzhijiagou_btn_locator = (By.LINK_TEXT, '组织架构')
    tianjiayonghu_btn_locator = (By.LINK_TEXT, '添加用户')
    tianjiabumen_btn_locator = (By.LINK_TEXT, '添加部门')
    youxiangyaoqing_btn_locator = (By.LINK_TEXT, '邮箱邀请')
#     进入组织架构
    def zzjg_into(self):
        self.driver.find_element(*self.zuzhijiagou_btn_locator).click()

    # 进入添加用户页面
    def zzjg_tjyh(self):
        self.driver.find_element(*self.tianjiayonghu_btn_locator).click()
        
# 进入添加部门页面
    def zzjg_tjbm(self):
        self.driver.find_element(*self.tianjiabumen_btn_locator).click()

    # 进入添加部门页面
    def zzjg_yxtj(self):
        self.driver.find_element(*self.youxiangyaoqing_btn_locator).click()